# -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# pyojo                                           Copyright (c) 2011 nabla.net
# ----------------------------------------------------------------------------
""" Demo: pyojo.js.dijit.form.TextBox
"""
from pyojo.all import *
from pyojo.js.lib.demo import new_panel

def GET(request):

    input = form.TimeTextBox(var = True,
                         name = "testdate")

    
    panel = new_panel("Demo Button", "TABS")
    html = "<p>%s</p>" % raw_str(__doc__)
    html += "<pre>%s</pre>" % raw_str(form.TimeTextBox.__doc__)
    panel["content"] = html

    
    return js.Require(input,
                      panel,
                      panel.domNode.appendChild(input.domNode),
                      "status('Button demo ready.');")
